<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
  <style>
    div{
      width: 200px;
      height: 200px;
      background-color: pink;
      margin: 100px;
    }
  </style>
</head>
<body>
    <div>

    </div>
<script>
  const div=document.querySelector('div')
  console.log(div.offsetHeight)
</script>
</body>
</html>